Class Time#getAllHolidaySchedules

Time

Class Summary
Constructor Attributes Constructor Name and Description
 
Time#getAllHolidaySchedules(successCallback, errorCallback)
Gets all HolidaySchedule List

Class Detail

Time#getAllHolidaySchedules(successCallback, errorCallback)
Gets all HolidaySchedule List
// Javascript code
	function getAllHolidaySchedules () {
		function successCb(cbObject) {
			console.log("cbObject : " + JSON.stringify(cbObject));
			for (var i = cbObject.holidayScheduleList.length-1; i>=0; i--) {
				console.log("holidayScheduleList[" + i + "].startMonth : " + cbObject.holidayScheduleList[i].startMonth);
				console.log("holidayScheduleList[" + i + "].startDay : " + cbObject.holidayScheduleList[i].startDay);
				console.log("holidayScheduleList[" + i + "].endMonth : " + cbObject.holidayScheduleList[i].endMonth);
				console.log("holidayScheduleList[" + i + "].endDay : " + cbObject.holidayScheduleList[i].endDay);
			}
		}
		function failureCb(cbObject) {
			var errorCode = cbObject.errorCode;
			var errorText = cbObject.errorText;
			console.log ("Error Code [" + errorCode + "]: " + errorText);
		}
		var time = new Time();
		time.getAllHolidaySchedules(successCb, failureCb);
	}
Parameters:
{Function} successCallback
success callback function.
{Function} errorCallback
failure callback function.
Since:
1.4
Returns:
{Object}
PropertyTypeDescription
holidayScheduleList[]Arrayholiday schedule list
holidayScheduleList[]._idStringschedule id
holidayScheduleList[].startMonthNumberstart month
holidayScheduleList[].startDayNumber start day
holidayScheduleList[].endMonthNumberend month
holidayScheduleList[].endDayNumberend day
See:
Time.getHolidayScheduleMode()